package com.iretailer.report.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;

/**
 * @Auther: xjw
 * @Date: 2019/8/28 0028 10:51
 * @Description:
 */
@TableName(value = "s_sendregularly_logs")
public class SendRegularlyLog {

    @JSONField(name = "Id")
    @TableId(value = "Id", type = IdType.AUTO)
    private Long Id;

    @TableField(value = "SendregularlyId")
    @JSONField(name = "SendregularlyId")
    private Long sendregularlyId;

    @TableField(value = "SendStartTime")
    @JSONField(name = "SendStartTime")
    private String sendStartTime;

    @TableField(value = "SendEndTime")
    @JSONField(name = "SendEndTime")
    private String sendEndTime;

    // 成功为 1 失败为-1
    @TableField(value = "Status")
    @JSONField(name = "Status")
    private int status;

    @TableField(value = "CreateTime")
    @JSONField(name = "CreateTime")
    private LocalDateTime CreateTime;

    @TableField(value = "Message")
    @JSONField(name = "Message")
    private String message;

    public SendRegularlyLog() {
    }

    public SendRegularlyLog(Long sendregularyId, String sendStartTime, String sendEndTime, int status, LocalDateTime createTime, String message) {
        this.sendregularlyId = sendregularyId;
        this.sendStartTime = sendStartTime;
        this.sendEndTime = sendEndTime;
        this.status = status;
        this.CreateTime = createTime;
        this.message = message;
    }

    public Long getId() {
        return Id;
    }

    public void setId(Long id) {
        Id = id;
    }

    public Long getSendregularlyId() {
        return sendregularlyId;
    }

    public void setSendregularlyId(Long sendregularlyId) {
        this.sendregularlyId = sendregularlyId;
    }

    public String getSendStartTime() {
        return sendStartTime;
    }

    public void setSendStartTime(String sendStartTime) {
        this.sendStartTime = sendStartTime;
    }

    public String getSendEndTime() {
        return sendEndTime;
    }

    public void setSendEndTime(String sendEndTime) {
        this.sendEndTime = sendEndTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return CreateTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        CreateTime = createTime;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
